package com.yj.springbootmybatis.service;

import com.yj.springbootmybatis.pojo.Carousel;
import com.yj.springbootmybatis.pojo.bo.UserAddressBO;
import com.yj.springbootmybatis.pojo.vo.UserAddressVO;

import java.util.List;

public interface UserAddressService {

    /**
     * 根据用户id查询用户地址
     * @param userId
     * @return
     */
    List<UserAddressVO> queryAll(String userId);


    void addNewUserAddress(UserAddressBO userAddressBO);

    int updateUserAddress(UserAddressBO userAddressBO);

    int deleteUserAddress(UserAddressBO userAddressBO);

    void setDefaultUserAddress(UserAddressBO userAddressBO);

}
